package com.xiaoyao.novel.service;

import com.xiaoyao.novel.dao.AdminDao;
import com.xiaoyao.novel.pojo.Admin;

public class AdminService extends BaseService<Admin> {

	static AdminDao dao = new AdminDao();

	public AdminService() {
		super(dao);
	}

	public Admin login(Admin admin) {
		Admin admin2 = null;
		try {
			admin2 = dao.getByAcountPass(admin);
		} catch (Exception e) {
			logger.error(e);
		}
		return admin2;
	}

}
